package jc223504;
/**
 * @(#)KookWai_A1.java
 *
 * KookWai_A1 application
 *
 * @Lock Kook Wai
 * @version 1.00 2011/3/24
 */

import java.io.*;

/**
* Get user choice from the user
*/

public class GetUserInput
{
    public static String getUserChoice (String subMenu)
    {
       System.out.print(subMenu);
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
       String name = null;
       try
       {
         name = br.readLine();
         System.out.println("Inside getUserChoice()");
         System.out.println("The user input : " + name);
       } catch (IOException e)
       	{
         System.out.println("Error!");
         System.exit(1);
       }
      return name;
	}
}
